#include <stdio.h>
#include <malloc.h>
#include "HoFile.h"

int main() {
	if (!file_exist("test.txt")) {
		printf("file not exist!\n");
		return 0;
	}
    FILE* file = fopen("test.txt", "r+");
    char* s = read_line(file);
    printf("%s\n", s);
    write_string(file, "0123456789\n");
    free(s);
    s = NULL;
    close_file(file);

    return 0;
}
